package com.xj.common.bussiness.deviceInformation.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.xj.common.bussiness.deviceInformation.entity.DeviceInfoMould;
import com.xj.common.bussiness.deviceInformation.entity.DeviceInfoParamMould;
import com.xj.common.bussiness.deviceInformation.entity.TbDeviceInformation;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author Hmemb
 * @since 2018-02-27
 */
public interface TbDeviceInformationMapper extends BaseMapper<TbDeviceInformation> {

    public List<TbDeviceInformation> getDeviceInformationByCondition(TbDeviceInformation bean);

    /**
     * 根据相关的字段分页查询设备信息和照片
     * @param page
     * @param deviceInfoParamMould
     * @return
     */
    @Select("selectDeviceInfo")
    List<DeviceInfoMould> selectDeviceInfo (Pagination page, DeviceInfoParamMould deviceInfoParamMould);
}